Pod::Spec.new do |s|
    s.name             = 'TYFoundation'
    s.version          = '1.0.0.12'
    s.summary          = 'iOS Foundation Dev Lib'
    
    s.homepage         = 'http://172.16.8.12/iOS-Libraries/UnderlyingComponents/TYFoundation'
    s.license          = { :type => 'MIT', :file => 'LICENSE' }
    s.author           = { 'Eagle M' => 'eaglem@yabotiyu.net' }
    s.source           = { :git => 'http://172.16.8.12/iOS-Libraries/UnderlyingComponents/TYFoundation.git', :tag => s.version.to_s }
    
    s.ios.deployment_target = '9.0'
    
    s.requires_arc = true
    s.frameworks = 'UIKit', 'Foundation'
    s.public_header_files = 'TYFoundation/Classes/TYFoundation.h'
    s.source_files = 'TYFoundation/Classes/TYFoundation.h'
    s.resource = 'TYFoundation/Assets/iPhoneTypeDefine.plist'
    # 扩展
    s.subspec 'Categories' do |categories|
        categories.source_files = 'TYFoundation/Classes/Categories/**/*'
        categories.frameworks = 'Security'
    end
    
    # 基础网络服务
    s.subspec 'Networking' do |networking|
        networking.source_files = 'TYFoundation/Classes/Networking/**/*'
        networking.dependency 'AFNetworking', '~> 3.2.1'
        networking.dependency 'ObjcAssociatedObjectHelpers', '~> 2.0.1'
        networking.dependency 'YYModel', '~> 1.0.4'
    end

    # GCD 相关定时服务
    s.subspec 'GCDTimer' do |timer|
        timer.source_files = 'TYFoundation/Classes/GCDTimer/**/*'
    end
end

